package com.example.demogatewayhystrix;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class FallbackController {

    @RequestMapping(value = "/fallbackmethod")
    public Map<String, String> fallBackController() {
        Map<String, String> res = new HashMap();
        res.put("Error Gateway Hystrix:", "服务器繁忙");
        return res;
    }


}
